﻿@model Feedback
    @{
        Model.RevertDept = Model.RevertDept ?? "西安市汽车维修行业管理处";
    }
<form class="form-horizontal uiform" method="post"
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("Save")">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">@Html.EditStatus("建议反馈")</h4>
    </div>
    <div class="modal-body">
        @Html.AntiForgeryToken()
        @Html.MarkCreate()
        @Html.HiddenFor(p => p.Id)
        <div class="alert alert-danger fxhide"></div>
        <div class="form-group">
            <label class="control-label col-md-2">
                受理编号：
            </label>
            <div class="col-md-9">
                <p class="form-control-static">
                    @Model.Number
                </p>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">
                信件主题：
            </label>
            <div class="col-md-4">
                <p class="form-control-static">
                    @Model.Title
                </p>
            </div>
            <label class="control-label col-md-2">
                信件分类：
            </label>
            <div class="col-md-4">
                <p class="form-control-static">
                    @Model.Category
                </p>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">
                姓名：
            </label>
            <div class="col-md-4">
                <p class="form-control-static">
                    @Model.Name
                </p>
            </div>
            <label class="control-label col-md-2">
                联系电话：
            </label>
            <div class="col-md-4">
                <p class="form-control-static">
                    @Model.Tel
                </p>
            </div>
        </div>
       
        <div class="form-group">
            <label class="control-label col-md-2">
                邮箱：
            </label>
            <div class="col-md-4">
                <p class="form-control-static">
                    @Model.Email
                </p>
            </div>
             
                <label class="control-label col-md-2">
                    受理时间：
                </label>
                <div class="col-md-4">
                    <p class="form-control-static">
                        @DateTimeHelper.FormatDateHasMinute(Model.CreateTime)
                    </p>
                </div>
             
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">
                信息内容：
            </label>
            <div class="col-md-9">
                <p class="form-control-static">
                    @Model.Contents
                </p>
            </div>
        </div>
       
        <div class="form-group">
            <label class="control-label col-md-2">
                <span class="required"> * </span>
                状态：
            </label>
            <div class="col-md-9">
                <div class="input-group">
                    <label class="checkbox-inline" style="padding-left: 0">
                        <input class="uicheck"
                               name="@nameof(Model.Status)"
                               value="true" type="checkbox"
                               @Html.IsChecked(Model.Status) />
                        <span>审核通过</span>
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">
                回复部门：
            </label>
            <div class="col-md-9">
                <input class="form-control" name="@nameof(Model.RevertDept)" value="@Model.RevertDept"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入回复部门'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">
                回复内容：
            </label>
            <div class="col-md-9">
                <textarea class="form-control" id="RevertContents" name="@nameof(Model.RevertContents)"
                          data-validate="required: true" data-validate-message="required:'请输入回复内容'"
                          style="width:100%;height:300px">
                    @Model.RevertContents
                </textarea>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 回复
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>
<style>
    .modal-dialog {
        width: 900px;
    }
</style>
<script>
    initKindEditor('#RevertContents');
</script>